package com.bean.search.req;

import cn.zhxu.bs.bean.DbField;
import cn.zhxu.bs.bean.SearchBean;
import cn.zhxu.bs.bean.SortType;
import lombok.Data;

/**
 * @author lkz
 * @className SearchUser
 * @description
 * @date 2024/4/19 15:42
 **/

@Data
@SearchBean(
        tables = "user u,dept d",
        where = "u.dept_id=d.id",
        autoMapTo = "u",// 字段没有使用DbFile的字段自动映射user表
        //orderBy = "u.id",
        sortType = SortType.ALLOW_PARAM
       // dataSource = "test"
)

public class SearchUser {


    private String userName;
    @DbField("d.name")
    private String deptName;

}
